const express=require("express");
const router=express.Router();
// 引入方法
const ctr=require("../controller/userctr.js");
router.get("/register",ctr.showregister);
router.get("/login",ctr.showlogin);
//注册
router.post("/register",ctr.register);
//登录
router.post("/login",ctr.login);
//注销
router.get("/logout",ctr.logout);
module.exports=router;